package com.example.test_witns.pojo;

import com.google.gson.annotations.SerializedName;

public class TemperatureHumidityResponse {
    @SerializedName("msg")
    private String msg;

    @SerializedName("status")
    private int status;

    @SerializedName("data")
    private Data data;

    public static class Data {
        @SerializedName("id")
        private int id;

        @SerializedName("temperature")
        private double temperature;

        @SerializedName("humidity")
        private double humidity;

        @SerializedName("recordedAt")
        private String recordedAt;

        // Getters and Setters
        public int getId() {
            return id;
        }

        public double getTemperature() {
            return temperature;
        }

        public double getHumidity() {
            return humidity;
        }

        public String getRecordedAt() {
            return recordedAt;
        }
    }

    // Getters and Setters
    public String getMsg() {
        return msg;
    }

    public int getStatus() {
        return status;
    }

    public Data getData() {
        return data;
    }

    @Override
    public String toString() {
        return "TemperatureHumidityResponse{" +
                "msg='" + msg + '\'' +
                ", status=" + status +
                ", data=" + data +
                '}';
    }

    public static class innerData {
        private int id;
        private double temperature;
        private double humidity;
        private String recordedAt;

        @Override
        public String toString() {
            return "Data{" +
                    "id=" + id +
                    ", temperature=" + temperature +
                    ", humidity=" + humidity +
                    ", recordedAt='" + recordedAt + '\'' +
                    '}';
        }
    }
}